package com.yue.jmx.demo2;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2017/1/3<br/>
 *
 * @author QiuYang
 */
public class Message {
    private String title;
    private String body;
    private String by;

    public Message(){
        title = "none";
        body = "none";
        by = "none";
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getBy() {
        return by;
    }

    public void setBy(String by) {
        this.by = by;
    }

    public void echo(){
        System.out.println("<" + title + ">");
        System.out.println(body);
        System.out.println("by " + by);
    }
}
